package com.lvy.hczn.front.business.dto;

import com.lvy.hczn.front.system.domain.business.GoodsBox;
import com.lvy.hczn.front.system.domain.business.GoodsBoxDetail;
import com.lvy.hczn.front.system.domain.business.UpOrDownPolicy;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Map;

/**
 * 入库
 *
 * @author yw
 * @date 2022-03-23 14:03:07
 **/
@Data
public class EntryDto<T> implements Serializable {

    /**
     * 入库信息
     */
    @NotEmpty(message = "入库参数为空")
    private Map<String, Object> map;

    /**
     * 指令参数
     */
    @Valid
    private UpOrDownPolicy upOrDownPolicy;

    /**
     * 货箱
     */
    @Valid
    private GoodsBox goodsBox;

    /**
     * 货箱详情
     */
    @Valid
    private GoodsBoxDetail goodsBoxDetail;
}
